Counting Inversions; Fast Integer Multiplication